package cn.iocoder.yudao.module.design.convert.houseUserRel;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.houseUserRel.vo.HouseUserRelCreateReqVO;
import cn.iocoder.yudao.module.design.controller.admin.houseUserRel.vo.HouseUserRelExcelVO;
import cn.iocoder.yudao.module.design.controller.admin.houseUserRel.vo.HouseUserRelRespVO;
import cn.iocoder.yudao.module.design.controller.admin.houseUserRel.vo.HouseUserRelUpdateReqVO;
import cn.iocoder.yudao.module.design.dal.dataobject.houseUserRel.HouseUserRelDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 住宅相关用户关联 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface HouseUserRelConvert {

    HouseUserRelConvert INSTANCE = Mappers.getMapper(HouseUserRelConvert.class);

    HouseUserRelDO convert(HouseUserRelCreateReqVO bean);

    HouseUserRelDO convert(HouseUserRelUpdateReqVO bean);

    HouseUserRelRespVO convert(HouseUserRelDO bean);

    List<HouseUserRelRespVO> convertList(List<HouseUserRelDO> list);

    PageResult<HouseUserRelRespVO> convertPage(PageResult<HouseUserRelDO> page);

    List<HouseUserRelExcelVO> convertList02(List<HouseUserRelDO> list);

}
